﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NSDecisionTree.DTree
{
    public class TreeNode
    {
        double entropy;
        int decompositionAttribute;
        int decomositionValue;
        string name;
        ArrayList data;
        TreeNode[] children;
        TreeNode parent;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public double Entropy
        {
            get { return entropy; }
            set { entropy = value; }
        }

        public int DecompositionAttribute
        {
            get { return decompositionAttribute; }
            set { decompositionAttribute = value; }
        }

        public int DecomositionValue
        {
            get { return decomositionValue; }
            set { decomositionValue = value; }
        }

        public ArrayList Data
        {
            get { return data; }
            set { data = value; }
        }

        public TreeNode[] Children
        {
            get { return children; }
            set { children = value; }
        }

        public TreeNode Parent
        {
            get { return parent; }
            set { parent = value; }
        }

        public TreeNode()
        {
            data = new ArrayList();
        }
    }
}
